package com.pri.chat.adapter;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.netease.nim.uikit.net.entity.MeGiftBean;
import com.pri.chat.R;
import com.pri.chat.utils.GlideUtil;

import java.util.List;

/**
 * 描述：添加类的描述
 *
 * @author
 * @time 2020/4/30
 */
public class GiftMeAdapter extends BaseQuickAdapter<MeGiftBean, BaseViewHolder> {

    public GiftMeAdapter(int layoutResId, @Nullable List<MeGiftBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MeGiftBean item) {
        helper.setText(R.id.tv_gift_num,item.getPresentName()+"\nx"+item.getCount());
        GlideUtil.getInstance().loadHeadImg(mContext,helper.getView(R.id.iv_logo),item.getImagePath());
    }
}
